/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ritesh;
import com.itextpdf.text.Document;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
import java.io.*;

/**
 *
 * @author RITESH
 */
public class PageSizePDF {
    public static void main(String arg[])throws Exception{
        Document document=new Document(PageSize.A4,0,0,10,10);
        PdfWriter.getInstance(document,new FileOutputStream("pageSizePDF.pdf"));
	    document.open();
        boolean add = document.add(new Paragraph("A4 page Size--->>roseinia.net"));
        document.close();
	}

}
